package com.example.common.exception;

import com.example.common.response.ServerCode;
import lombok.Getter;

/**
 * @Description: 响应异常
 * @Auther: Swain
 * @Date: 2021/1/11 16:48
 * @Version 1.0.0
 */
@Getter
public class ResponseException extends BaseException {

    private int code;

    private String msg;

    public ResponseException(String msg) {
        super(msg);
        this.code = ServerCode.RESPONSE_ERROR.getCode();
        this.msg = msg;
    }

}
